<?php
/**
 * Core_Data_Tokenizer
 * create token
 *
 * @author Adrian Stolarski
 */
class Core_Data_Tokenizer implements Core_Data_Tokenable {
    
    /**
     * create_token()
     * create token
     */
    public function create_token() {
        $random_token = base64_encode(openssl_random_pseudo_bytes(32));
        $_SESSION['csrf_token'] = $random_token;
        return $random_token;
    }

}
